Appearance
#临时修改一下用户名和邮箱
git config --global user.email "lluo2020@163.com"
git config --global user.name "Lluo-liang"
查看用户名 :git config user.name
查看邮箱:git config user.email
#注意后面切换回去
git config --global user.email "felixwu@sheinbpo.com"
git config --global user.name "felixwu"
#生成个人密钥
ssh-keygen -t rsa -f ~/.ssh/id_rsa_personal -C "lluo2020@163.com"
#添加SSH配置
touch ~/.ssh/config nano ~/.ssh/config
文件内容
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa_personal
#将生成的SSH配置放入到 GITHUb ADD SSH KEY
#测试连接
ssh -T git@github.com
#可以了